import { http } from '@/utils/request.js'

const businessTemplateService = {
  list: (params) => {
    return http.get('/system/businessTemplate/list', params)
  },
  businessList: (templateId,businessIds) => {
    return http.get( `/system/businessTemplate/businessList/${templateId}?businessIds=${businessIds}`)
  },
  add: (params) => {
    return http.post('/system/businessTemplate/insert', params)
  },
  queryBeforeInsert: (params) => {
    return http.get('/system/businessTemplate/queryBeforeInsert', params)
  },
  update: (params) => {
    return http.post('/system/businessTemplate/update', params)
  },
  del: (id) => {
    return http.delete(`/system/businessTemplate/${id}`)
  }
}

export default businessTemplateService
